package com.group3.customer.service.impl;

import java.io.IOException;
import java.util.List;

import com.group3.customer.service.MidListService;
import com.group3.customer.util.HUCUtil;
import com.group3.customer.util.JsonUtil;

public class MidListServiceImpl implements MidListService{

	@Override
	public List<String> getMidList() {
		String Url ="http://10.222.29.149:8006/amc_admin/MidListServlet";
		String Method = "POST";
		List<String> midList = null;
		try {
			String content = HUCUtil.remoteRequest(Url, Method);
			System.out.println("Content" + content);
			midList = JsonUtil.getInstance().getObjectFromJson(content, List.class);
			
		} catch (IOException e) {
			e.printStackTrace();
		}
		return midList;
	}
	
}
